﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace EasyGo.Web.Config
{
    public static class Bundles
    {
        public static void Init(BundleCollection bundles)
        {
            //bundles.Add(
            //    new ScriptBundle("~/JS/libs").Include(
            //        "~/Scripts/jquery-{version}.js",
            //        "~/Scripts/jquery-ui-{version}.js",
            //        "~/Scripts/jquery.validate.js",
            //        "~/Scripts/jquery.ba-bbq.js",
            //        "~/Scripts/knockout-2.2.0.js"));

            var app = new ScriptBundle("~/JS/app");
            app.Include("~/Scripts/bootstrap/tooltip/bootstrap-tooltip.js");
            app.IncludeDirectory("~/Scripts/bootstrap", "*.js", false);
            app.IncludeDirectory("~/Scripts/src", "*.js", false);
            app.IncludeDirectory("~/Scripts/src/views", "*.js", true);
            app.IncludeDirectory("~/Scripts/src/repositories", "*.js", true);

            bundles.Add(app);
        }
    }
}